<!--
 * @Author: [kangjie]
 * @Date: 2022-04-08 15:00:33
 * @LastEditors: [kangjie]
 * @LastEditTime: 2022-04-08 15:10:48
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./js/axios-0.20.0.js"></script>
  <script src="./js/qs-6.9.4.js"></script>
</head>

<body>
  <script>
    let qs = Qs;
    // 全局配置axios的默认值 素有的axios请求都会携带默认值
    axios.defaults.baseURL = 'http://121.199.0.35:8888';
    axios.defaults.headers.common['Authorization'] = 'token123';
    // axios.defaults.headers.get['Content-Type']='application/x-www-form-urlencoded';
    axios.post('/index/carousel/findAll',qs.stringify({id:1}));
    axios.get('/index/carousel/findAll',{
      params:{page:1,pageSize:10}
    });
  </script>
</body>

</html>